package com.jianbing.shasha.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jianbing.common.annotation.Excel;
import com.jianbing.common.core.domain.BaseEntity;

/**
 * 用户能够获得奖励记录对象 shasha_reward
 * 
 * @author ruoyi
 * @date 2024-06-09
 */
public class ShashaReward extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 奖励编号 */
    private Integer id;

    /** 该奖励名称 */
    @Excel(name = "该奖励名称")
    private String name;

    /** 该奖励图片的路径 */
    @Excel(name = "该奖励图片的路径")
    private String imgUrl;

    /** 记录插入时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录插入时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date insertTime;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setImgUrl(String imgUrl) 
    {
        this.imgUrl = imgUrl;
    }

    public String getImgUrl() 
    {
        return imgUrl;
    }
    public void setInsertTime(Date insertTime) 
    {
        this.insertTime = insertTime;
    }

    public Date getInsertTime() 
    {
        return insertTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("imgUrl", getImgUrl())
            .append("insertTime", getInsertTime())
            .toString();
    }
}
